package com.rybbaby.tss.front.tssClasses.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @description 班级表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:50:14
 */
@Embeddable
public class ViewClassesAttendanceManagementKey implements Serializable {


	private static final long serialVersionUID = 5767726798520786642L;
	/** 主键 **/
	private String id;
	private Timestamp createTime;

	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "createTime", nullable= false, length = 32)
	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		ViewClassesAttendanceManagementKey that = (ViewClassesAttendanceManagementKey) o;

		if (id != null ? !id.equals(that.id) : that.id != null) return false;
		return createTime != null ? createTime.equals(that.createTime) : that.createTime == null;
	}

	@Override
	public int hashCode() {
		int result = id != null ? id.hashCode() : 0;
		result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
		return result;
	}

}